package com.siki.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author Siki
 * @Date 2020/3/2
 */
@Getter
@NoArgsConstructor
public class UserDTO {
    @NotNull(message = "姓名不能为空")
    @ApiModelProperty("姓名")
    String name;

    @ApiModelProperty("性别")
    @NotNull(message = "性别不能为空")
    String userSex;

    @ApiModelProperty("学号")
    @NotNull(message = "学号不能为空")
    String number;      //学号

    @NotNull(message = "班级信息不能为空")
    @ApiModelProperty("班级信息")
    String classInfo;   //班级信息

    @NotNull(message = "意愿部门不能为空")
    @ApiModelProperty("意愿部门")
    @Valid
    List<DepartmentDTO> intention;

    @ApiModelProperty("电话")
    @NotNull(message = "电话不能为空")
    String phone;

    @ApiModelProperty("微信")
    @NotNull(message = "微信不能为空")
    String weChat;

    @ApiModelProperty("邮箱")
    @NotNull(message = "邮箱不能为空")
    String email;

    @NotNull(message = "自我介绍不能为空")
    @ApiModelProperty("自我介绍")
    String selfIntroduction;//自我介绍

    @ApiModelProperty("对莞青的认识")
    String remark;      //备注

    @ApiModelProperty("头像url")
    String avatarUrl;
}
